# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hexinject
pkgver=1.6
pkgrel=1
groups=('blackarch' 'blackarch-sniffer')
pkgdesc='A very versatile packet injector and sniffer that provides a command-line framework for raw network access.'
arch=('x86_64' 'aarch64')
url='http://hexinject.sourceforge.net'
license=('BSD')
depends=('libpcap')
source=("http://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz/download")
sha512sums=('7432122a7ca42b7ac066cc55daec2d4a656b08e0f390db1a49f626181080d07687026d04a150573e3341e4e76f87a20b6466deddcc9d022e7d66fadcb8dac1ad')

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 prettypacket "$pkgdir/usr/bin/prettypacket"
  install -Dm 755 hex2raw "$pkgdir/usr/bin/hex2raw"
}

